package com.nfit.service.impl.alluser;

import com.nfit.dao.AllUserMapper;
import com.nfit.entity.AllUser;
import com.nfit.service.AllUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class AllUserServiceImpl implements AllUserService {
    @Autowired
    private AllUserMapper dao;

    @Override
    public List<AllUser> selectAll() {
        return dao.selectAll();
    }

    @Override
    public AllUser selectAllUserById(String userId) {
        AllUser user = dao.selectAllUserById(userId);
        return user;
    }

    @Override
    public int updateAllUser(AllUser user) {
        int result = dao.updateAllUser(user);
        return result;
    }

    @Override
    public int deleteAllUserById(String userId) {
        int result = dao.deleteAllUserById(userId);
        return result;
    }
}
